package jheej5024.oop;

public class J31_main {

	public static void main(String[] args) {
		
		//J31_RetangleVO r1 = new J31_RetangleVO (4, 40, "red");
		//J31_RetangleVO r2 = new J31_RetangleVO (3.5F, 35.9F, "orange");
        //J31_RetangleService rs = new J31_RetangleService();
		
		//System.out.println(rs.getArea(r1));
		//System.out.println(rs.getPerimeter(r1));
		//System.out.println(rs.getArea(r2));
		//System.out.println(rs.getPerimeter(r2));
		
		
		J31_RetangleVO r = new J31_RetangleVO (3.5F, 35.9F, "orange");
        J31_RetangleService rs = new J31_RetangleService();
		
        
        System.out.println(rs.getArea(r));
        System.out.println(rs.getPerimeter(r));
        System.out.println(r.getColor());
        
        
        
        int fast=J31_FanVO.FAST;
        int slow=J31_FanVO.SLOW;
        int medium=J31_FanVO.MEDIUM;
        
        J31_FanVO f = new J31_FanVO(fast, true, 20, "pink");
        J31_FanService fs = new J31_FanService();
        
        System.out.println(f.getRadius()); //크기
        System.out.println(f.getColor());  //색상
        System.out.println(f.getSpeed());  //속도
        System.out.println(f.isOn());
        System.out.println(fs.showFanInfo(f));
        
	}

}

